import { ToolServiceApi } from './_tool';
import { AxiosResponse } from 'axios';
import { objectToUrlParams } from '/@/utils/common';
import service from '/@/utils/request';

class QuerySeqConfigServiceApi extends ToolServiceApi {}
export const ExportQuerySeqConfigServiceApi = new QuerySeqConfigServiceApi(
  '/QuerySeqConfigService'
);
class SeqConfigServiceApi extends ToolServiceApi {}
export const ExportSeqConfigServiceApi = new SeqConfigServiceApi('/SeqConfigService');

export function saveAddEncodeRule(data: any, params?: any): Promise<AxiosResponse<any>> {
  return service.post('/tool/SeqConfigService', { ...data }, { params: { ...params } });
}
export function saveEditEncodeRule(
  id: string,
  data: any,
  params?: any
): Promise<AxiosResponse<any>> {
  return service.post('/tool/SeqConfigService/id/' + id, { ...data }, { params: params });
}
